import java.util.*;
import java.sql.*;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86155
 * date: 2024-03-03
 * Time: 13:18
 *
 * @author 1
 */

public class Test3 {
    public static void main1(String[] args) {
        java.util.Date date = new java.util.Date();

    }

    public static void main(String[] args) {
        Grades grades = new Grades();
        System.out.println("+++++++++++++++");
        Grades grades1 = new Grades();
        System.out.println(grades.age);
    }
}
class Grades{
    public String name = "bit";
    public static int age = 22;

    {
        System.out.println("实例代码块");
    }
    static {//静态的只会执行一次
        age = 23;
        System.out.println("静态代码块");

    }
    public Grades(){
        System.out.println("不带参数的构造方法");
    }
}